package com.gxuwz.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.baomidou.mybatisplus.plugins.Page;
import com.gxuwz.constant.ConfigConsts;
import com.gxuwz.entity.UserOperateLog;
import com.gxuwz.service.IUserOperateLogService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 刘玉霜
 * @since 2017-11-11
 */
@Controller
@RequestMapping("/userOperateLog")
public class UserOperateLogController {
	
	@Autowired
	private IUserOperateLogService userOperateLogService;	
	
	@RequestMapping(value = "/list")
	public String list(Model model){
		Page<UserOperateLog> page = new Page<UserOperateLog>(1, ConfigConsts.PAGE_SIZE);
		page = userOperateLogService.selectPage(page);
		model.addAttribute("page", page);
		return "log/list-log";
	}
	
}
